<!-- Posts.vue -->
<template>
  <pre>{{ data }}</pre>
</template>
<script lang="ts">
import axios from "axios";

export default {
  name: "Posts",
  async setup() {
    let response = await axios.get(
      "https://jsonplaceholder.typicode.com/posts"
    );
    return { data: response.data };
  },
};
</script>
